package com.jwsoft.manager.core.dao.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 特殊通道表
 *
 * @author wangtao
 * @since 2022-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("edu_form_special")
@Schema(name = "EduFormSpecial", title = "特殊通道表", description = "特殊通道表实体类")
public class EduFormSpecial extends Model<EduFormSpecial> {

    private static final long serialVersionUID = 1L;

    @Schema(name = "formSpecialId", title = "特殊通道id")
    @TableId(value = "form_special_id", type = IdType.ASSIGN_ID)
    private String formSpecialId;

    @Schema(name = "bigClassKey", title = "大类编码")
    @TableField(value = "big_class_key")
    private Integer bigClassKey;

    @Schema(name = "bigClassValue", title = "大类名称")
    @TableField(value = "big_class_value")
    private String bigClassValue;

    @Schema(name = "smallClassKey", title = "小类编码")
    @TableField(value = "small_class_key")
    private Integer smallClassKey;

    @Schema(name = "smallClassValue", title = "小类名称")
    @TableField(value = "small_class_value")
    private String smallClassValue;

    @Schema(name = "orderNo", title = "排序字段")
    @TableField(value = "order_no")
    private Integer orderNo;

    @Schema(name = "year", title = "年度")
    @TableField(value = "year")
    private Integer year;

    @Schema(name = "status", title = "状态")
    @TableField(value = "status")
    private String status;
    @Schema(name = "mbFlag", title = "是否可报民办")
    @TableField(value = "mb_flag")
    private String mbFlag;
    @Schema(name = "mzgFlag", title = "是否可报民转公")
    @TableField(value = "mzg_flag")
    private String mzgFlag;
    @Schema(name = "houseFlag", title = "是否需要有房产")
    @TableField(value = "house_flag")
    private String houseFlag;
    @Schema(name = "houseType", title = "房产获取类型：1可输入身份证获取 2 只能从父母的信息中获取")
    @TableField(value = "house_type")
    private String houseType;
    @Schema(name = "fileFlag", title = "是否需要上传佐证材料")
    @TableField(value = "file_flag")
    private String fileFlag;
    @Schema(name = "del", title = "0,未删除,1,已删除")
    @TableField(value = "del", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    @TableLogic
    private String del;

    @Schema(name = "createName", title = "创建人")
    @TableField(value = "create_name", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private String createName;

    @Schema(name = "createTime", title = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NOT_NULL)
    private Date createTime;

    @Schema(name = "updateName", title = "修改人")
    @TableField(value = "update_name", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private String updateName;

    @Schema(name = "updateTime", title = "更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE, updateStrategy = FieldStrategy.NOT_NULL)
    private Date updateTime;

    @Schema(name = "行政区划")
    private String areaCode;

    @Override
    public Serializable pkVal() {
        return this.formSpecialId;
    }
}
